package com.huadao.cart_ccs.experiment.confirmBeforeCulture.environmentDevice;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.CheckBox;
import android.widget.TextView;

import com.huadao.cart_ccs.R;
import com.huadao.cart_ccs.base.BaseFragment;
import com.huadao.cart_ccs.base.BasePresenter;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import butterknife.Unbinder;

public class EnvironmentDeviceFrag extends BaseFragment {
    @BindView(R.id.confirm1)
    CheckBox confirm1;
    @BindView(R.id.confirm2)
    CheckBox confirm2;
    @BindView(R.id.confirm3)
    CheckBox confirm3;
    @BindView(R.id.note)
    TextView note;

    public interface ConfirmEnvironmentDevice{
        void onConfirmEnvironmentDevice();
    }

    private ConfirmEnvironmentDevice confirmEnvironmentDevice;

    @Override
    public int getContentViewId() {
        return R.layout.frag_environment_device;
    }

    @Override
    protected void initAllMembersView(Bundle savedInstanceState) {

    }

    @Override
    protected BasePresenter getPresenter() {
        return null;
    }

    @OnClick(R.id.btn_confirm)
    public void onViewClicked() {
        if(confirmEnvironmentDevice!=null){
            confirmEnvironmentDevice.onConfirmEnvironmentDevice();
        }
    }

    public void setConfirmEnvironmentDevice(ConfirmEnvironmentDevice confirmEnvironmentDevice) {
        this.confirmEnvironmentDevice = confirmEnvironmentDevice;
    }
}
